package com.zimin.cloud.mine.pojo.system.business;

import com.zimin.shared.pojo.BasePageBusiness;
import lombok.*;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * <p>
 * 用户信息 业务对象
 * </p>
 *
 * @author zimin
 * @since 2021-12-30 11:04
 */
@Getter
@Setter
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class LoginBO extends BasePageBusiness implements Serializable {

    /**
     * 用户账号
     */
    @NotBlank(message = "用户名不可为空")
    private String userName;

    /**
     * 密码
     */
    @NotBlank(message = "密码不可为空")
    @Length(min = 6, max = 16, message = "密码长度不可低于6位，不可高于16位")
    private String password;

    /**
     * 人脸信息
     */
    private String img64;

    /**
     * 验证码
     */
    @Deprecated
    private String code;

}
